/**   
* @Title: OpRecordImpl.java 
* @Package cn.hdmis.dao.imp 
* @Description: TODO
* @author pnwazgx@163.com   
* @date 2011-3-27 上午12:57:52 
* @version V1.0   
*/
package cn.hdmis.dao.impl;

import java.util.Date;
import java.util.List;

import org.hibernate.criterion.Restrictions;
import cn.hdmis.dao.OpRecordDao;
import cn.hdmis.entity.OpRecord;

/** 
 * @ClassName: OpRecordImpl 
 * @Description: TODO
 * @author pnwzgx@163.com
 * @date 2011-3-27 上午12:57:52 
 *  
 */

public class OpRecordDaoImpl extends BaseDaoImp<OpRecord> implements OpRecordDao {

	/* (非 Javadoc) 
	 * <p>Title: findByTime</p> 
	 * <p>Description: </p> 
	 * @param begin
	 * @param end
	 * @return 
	 * @see cn.hdmis.dao.OpRecordDao#findByTime(java.util.Date, java.util.Date) 
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<OpRecord> findByTime(Date begin, Date end) {
		// TODO Auto-generated method stub
		return this.getSession().createCriteria(OpRecord.class).add(Restrictions.between("opDate",begin, end)).list();
	}

}
